From: Rotem Liss Date: Sun, 16 Sep 2007 03:25:35 +0000 (+0000) Subject: In double redirects, the link should be red when the page was deleted, as in broken... X-Git-Tag: 1.31.0-rc.0~51381 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=c405288e6a264dd4de7098e6071dfb83f0648ca2;p=lhc%2Fweb%2Fwiklou.git In double redirects, the link should be red when the page was deleted, as in broken redirects, and not always known. --- diff --git a/includes/SpecialDoubleRedirects.php b/includes/SpecialDoubleRedirects.php index 6d46fc50a3..7e4ec36099 100644 --- a/includes/SpecialDoubleRedirects.php +++ b/includes/SpecialDoubleRedirects.php @@ -63,7 +63,6 @@ class DoubleRedirectsPage extends PageQueryPage { $fname = 'DoubleRedirectsPage::formatResult'; $titleA = Title::makeTitle( $result->namespace, $result->title ); - $linkA = $skin->makeKnownLinkObj( $titleA,'', 'redirect=no' ); if ( $result && !isset( $result->nsb ) ) { $dbr = wfGetDB( DB_SLAVE ); @@ -75,12 +74,13 @@ class DoubleRedirectsPage extends PageQueryPage { } } if ( !$result ) { - return "{$linkA}\n"; + return '' . $skin->makeLinkObj( $titleA, '', 'redirect=no' ) . ''; } $titleB = Title::makeTitle( $result->nsb, $result->tb ); $titleC = Title::makeTitle( $result->nsc, $result->tc ); + $linkA = $skin->makeKnownLinkObj( $titleA, '', 'redirect=no' ); $edit = $skin->makeBrokenLinkObj( $titleA, "(".wfMsg("qbedit").")" , 'redirect=no'); $linkB = $skin->makeKnownLinkObj( $titleB, '', 'redirect=no' ); $linkC = $skin->makeKnownLinkObj( $titleC );